home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / ToomyTooth.swf / scripts / frame_34 / PlaceObject2_61_8 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Encoding:
Text File  |  2005-08-05  |  630 b   |  29 lines

  1. onClipEvent(enterFrame){
  2.    _root.Tommy._x += (_root._xmouse - _root.Tommy._x) / 4;
  3.    _root.Tommy._y += (_root._ymouse - _root.Tommy._y) / 4;
  4.    if(_root._xmouse < _root.Tommy._x - 20)
  5.    {
  6.       _root.Tommy.nextFrame();
  7.    }
  8.    else if(_root.Tommy._x + 20 < _root._xmouse)
  9.    {
  10.       _root.Tommy.prevFrame();
  11.    }
  12.    if(490 < _root.Tommy._x)
  13.    {
  14.       setProperty(this, _X, 490);
  15.    }
  16.    if(_root.Tommy._x < 10)
  17.    {
  18.       setProperty(this, _X, 10);
  19.    }
  20.    if(385 < _root.Tommy._y)
  21.    {
  22.       setProperty(this, _Y, 385);
  23.    }
  24.    if(_root.Tommy._y < 10)
  25.    {
  26.       setProperty(this, _Y, 10);
  27.    }
  28. }
  29.